var assert = require('assert');
var should = require('should');
var util = require('util');
var zlib = require('zlib');
var _ = require('lodash');
var unionHelpHandler = require('../../../app/servers/union/handler/unionHelpHandler.js');
var config = require('../../config');
var configUtil = require('../../../app/util/configUtil');
var analyze = require('kc-analyze');

suite('联盟列表测试', function () {
    setup(function (done) {
        var analyze_config = configUtil.load('analyze');
        var game_config = configUtil.load('game');
        analyze.initialize({
            host: analyze_config.host,
            server_id: game_config.server_id
        });
        done();
    });

    //suite('联盟请求帮助测试', function () {
    //test('联盟请求帮助', function (done) {
    //var msg = {};
    //msg.share_id = 20501;
    //msg.help_type = 1;
    //msg.help_role_id = 12743;
    //var session = {};
    //session.uid = 12759;

    //var buy_shop_handler = new unionHelpHandler();
    //buy_shop_handler.unionHelpPeople(msg, session, function (err, res) {
    //console.log('res:', res);
    //done();
    //});
    //});
    //});

    suite('xxxx', function () {
        test('xxxxx', function (done) {
            var msg = {};
            var session = {};
            session.uid = config.role_id;

            var buy_shop_handler = new unionHelpHandler();
            buy_shop_handler.unionAllHelpPeople(msg, session, function (err, res) {
                console.log('res:', res);
                done();
            });
        });
    });
});
